package io.kimmking.sso.ssodemo;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.SessionAttribute;

@Controller
public class BookController {

    @GetMapping("/book")
    @ResponseBody
    public String book(@SessionAttribute("A_USERNAME") String username) {
        return "this is "+username+" java course book!";
    }

}
